package com.sun.entity;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author SunRui
 * @description TODO
 * @date 2024/9/22 18:27
 */
public class Student implements Serializable {
    @Serial
    private static final long serialVersionUID = -3921556189458249132L;
    private int student_id;
    private String name;
    private int age;
    private String id_no;
    private int sex;
    private Course course;

    @Override
    public String toString() {
        return "Student{" +
                "student_id=" + student_id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", id_no='" + id_no + '\'' +
                ", sex=" + sex +
                ", course=" + course +
                '}';
    }

    public int getStudent_id() {
        return student_id;
    }

    public void setStudent_id(int student_id) {
        this.student_id = student_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getId_no() {
        return id_no;
    }

    public void setId_no(String id_no) {
        this.id_no = id_no;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }
}
